<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <!--<meta name="viewport" content="width=device-width,initial-scale=1.0">-->
  <!--<meta id="metaDescription" name="description" content="萌主来了">-->
  <!--<meta http-equiv="pragma" content="no-cache">-->
  <!--<meta http-equiv="Cache-Control" content="no-store, must-revalidate">-->
  <!--<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">-->
  <!--<meta http-equiv="expires" content="0">-->
  <!--<meta id="eqMobileViewport" name="viewport" content="width=320, initial-scale=1.171875, maximum-scale=1.171875, user-scalable=no" servergenerated="true">-->
  <script src="static/flexible.js"></script>
  <link rel="stylesheet" href="static/animate.css">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="renderer" content="webkit">
  <meta name="description" content="萌主来了">
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <title>萌主来了</title>
  <!--<script src="static/vconsole.min.js"></script>-->
  <!--<script>-->
    <!--var vConsole = new VConsole();-->
  <!--</script>-->
  <script type="text/javascript">
    //加载状态为complete时移除loading效果
    function completeLoading() {
      if (document.readyState == "complete") {
        var loadingMask = document.getElementById('loading');
        loadingMask.parentNode.removeChild(loadingMask);
      }
    }
    //    })(window)
  </script>
  <script src="static/jweixin-1.0.0.js"></script>
  <script type="text/javascript">
    function autoPlayAudio1() {
      wx.config({
        // 配置信息, 即使不正确也能使用 wx.ready
        debug: false,
        appId: '',
        timestamp: 1,
        nonceStr: '',
        signature: '',
        jsApiList: []
      });
      wx.ready(function() {
          console.log("play.....")
        document.getElementById('media').play();
      });
    }
    function autoPlayAudio2() {
      window.onload = function() {
        WeixinJSBridge.invoke('getNetworkType', {}, function(e) {
          document.getElementById('media').play();
        });
      };
    }
    autoPlayAudio1(); // 推荐使用方法1
  </script>

</head>
<body onload="completeLoading()">
<div id="app"></div>
<!--<audio  src="http://p9h3lexjs.bkt.clouddn.com/5b2b228d08df1.mp3" id="media" autoplay preload loop></audio>-->
<!-- built files will be auto injected -->
</body>
</html>
